#pragma once

#include "plot_controller.h"

#include <QSharedPointer>
#include <QDateTime>



class DateTimePlotController : public PlotController
{
    Q_OBJECT
public:
    explicit DateTimePlotController(QCustomPlot *plot, QObject *parent = nullptr);
    ~DateTimePlotController();

    void append(double timestamp, double value);
    void append(QDateTime dateTime, double value);

signals:

private:
    void initPlot();


private:
    QSharedPointer<QCPAxisTickerDateTime> m_dateTimeTicker;
};

